﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaseData.Domain
{
    /// <summary>
    /// 登录日志
    /// </summary>
    public class LoginNlog:BaseEneity
    {
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 登录时间
        /// </summary>
        public DateTime? LoginTime { get; set; }
        /// <summary>
        /// 终端类型【Web端、APP、小程序】
        /// </summary>
        [StringLength(50)]
        public string? TerminalType {  get; set; }
        /// <summary>
        /// 浏览器/终端版本
        /// </summary>
        [StringLength(100)]
        public string? BrowserOrTeminalVersion {  get; set; }
        /// <summary>
        /// 操作系统
        /// </summary>
        [StringLength(100)]
        public string? OperationSystem {  get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        [StringLength(50)]
        public string? EquimentName {  get; set; }
        /// <summary>
        /// MAC地址
        /// </summary>
        [StringLength(50)]
        public string? MACAddress {  get; set; }
        /// <summary>
        /// 登录IP
        /// </summary>
        [StringLength(50)]
        public string? LoginIp {  get; set; }
        /// <summary>
        /// 所在地区
        /// </summary>
        [StringLength(50)]
        public string? Area {  get; set; }
    }
}
